{if !empty($advs)}
	<div class='fui-swipe' > 
	    <div class='fui-swipe-wrapper'>
	    	{loop $advs $item}
	    		<div class='fui-swipe-item' {if !empty($item['link'])}onclick="location.href='{$item['link']}'"{/if}><img src="{php echo tomedia($item['thumb'])}" /></div>
			{/loop}
	    </div>
	    <div class='fui-swipe-page'></div>
	</div>
{/if}